<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                template="/layout/main.xhtml">
    <ui:define name="title">Posts</ui:define>
    <ui:define name="content">

        <h2>Posts</h2>

        <h3>Add Comment</h3>


            <div class="post">
                <h:form>
                    <h:inputHidden id="postId" value="#{facesContext.externalContext.requestMap.get('postId')}"/>
                    <h:inputTextarea id="content" value="#{postCommentBean.content}"/>

                    <h:commandButton actionListener="#{postCommentBean.saveComment}" id="submit" value="Add Comment"/>
                </h:form>
            </div>
        
    </ui:define>
</ui:composition>
